import request from '@/utils/request'

// 树形搜索
export function listInfo(query) {
  return request({
    url: '/zndd/reporting/nowlistInfo?name='+query,
    method: 'get'
  })
}

// 查询报工信息任务列表
export function tasklist(query) {
  return request({
    url: '/zndd/reporting/list1',
    method: 'get',
    params: query,
  })
}

// 查询报工信息任务列表
export function workOderlist(query) {
  return request({
    url: '/zndd/reporting/workOderlist',
    method: 'post',
    params: query,
  })
}

// 更新报工信息状态
export function updateWorkOderInfo(data) {
  return request({
    url: '/zndd/reporting/editWork',
    method: 'put',
    data: data
  })
}

// 导出报工信息状态
export function exportData(query) {
  return request({
    url: '/zndd/reporting/export',
    method: 'post',
    params: query
  })
}
